package com.yonyou.pmclouds.enterprise.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.personnel.entity.PersonnelVO;
import lombok.Data;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * @Author chulf
 * @Date 2020/4/13
 * @Description
 **/
@Data
@Table(name = "pm_enterprise")
public class EnterpriseVO extends SuperVO {

    public static final String NAME = "name";
    public static final String ROLE = "role";
    public static final String PLAN_AUTHORIZED_NUM = "planAuthorizedNum";
    public static final String REAL_AUTHORIZED_NUM = "realAuthorizedNum";
    public static final String PERSONNEL_NUM = "personnelNum";

    @Id
    private String pkEnterprise;
    private String name;
    private byte role; //角色
    private Integer planAuthorizedNum; //计划授权数
    private Integer realAuthorizedNum; //实际授权数
    private Integer personnelNum; //企业人数
    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;
    private String pkTenant;

    @Transient
    private List<String> pkOrgs;
    @Transient
    private List<String> orgNames;
    @Transient
    private PersonnelVO[] personnelVOS;
}
